package com.example.testsqlite;

import java.util.Date;

import sinbad.godutch.database.sqlitedal.SQLiteDALAccountBook;
import sinbad.godutch.model.ModelAccountBook;
import android.app.Activity;
import android.os.Bundle;

public class MainActivity extends Activity
{
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ModelAccountBook modelAccountBook = new ModelAccountBook();
        modelAccountBook.SetAccountBookID(1);
        modelAccountBook.SetAccountBookName("Test");
        modelAccountBook.SetCreateDate(new Date());
        
        SQLiteDALAccountBook.i().insertAccountBook(modelAccountBook);
        SQLiteDALAccountBook.i().getAccountBook("");
    }
}
